<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        date=new Date();
        for (let i = 0; i <10 ; i++) {
            document.write(date);
        }


        console.log("date= "+date);
        var year = date.getUTCFullYear();
        console.log("year= "+year);
        var month = date.getMonth();
        console.log("month= "+month);
        var day = date.getDate();
        console.log("day= "+day);
        var hour = date.getHours();
        var min = date.getMinutes();
        var sec = date.getSeconds()
        console.log("hour= "+hour);
        console.log("min= "+min);
        console.log("sec= "+sec);
    </script>
</head>
<body>
</body>
</html>